﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data;
namespace ProjectSem40701.Util
{
    public class CheckRoundIsFirst
    {
        public bool IsRoundFirst(int roundID)
        {
            bool ok = false;
            try
            {
                MainDataset.RoundTableAdapters.tbl_RoundTableAdapter dpRoundActive = new
                       MainDataset.RoundTableAdapters.tbl_RoundTableAdapter();
                DataTable dttblRoundActive =
                    dpRoundActive.Get_tbl_Round_Select_All_By_RoundID(roundID);
                ok = Convert.ToBoolean(dttblRoundActive.Rows[0]["RoundIsFirst"].ToString());
                return ok;
            }
            catch
            {
                return false;
            }
        }
    }
}
